/**
 * @Project TMHSCFX
 * @Author Tran Manh Hung
 * @Email: hungtmit@gmail.com | tmh@xwebgate.com
 * @Copyright © 2011 TMH. All rights reserved
 * @Createdate Feb 27, 2011
 * @Createtime 5:54:42 PM
 */

package com.tmh.study.aS3DP.mcv.weatherMap
{
	import com.tmh.study.aS3DP.mcv.minimalist.ComponentView;

	import flash.display.Loader;
	import flash.events.Event;
	import flash.net.URLRequest;

	import org.osmf.image.ImageLoader;

	public class MapView extends ComponentView
	{
		private var uiLoader:Loader

		public function MapView(model:Object, controller:Object = null)
		{
			super(model, controller);
			uiLoader = new Loader();
			update();
			addChild(uiLoader);
		}

		override public function update(event:Event = null):void
		{
			uiLoader.load(new URLRequest((_model as IModel).getMapURL()));
		}
	}
}